/*
 * @Description:
 * @Version: 1.0
 * @Author: Shi Hexiang
 * @Date: 2023-09-21 15:00:11
 * @LastEditors: yxx
 * @LastEditTime: 2024-12-05 09:31:53
 */
import cryptoJs from "crypto-js"

export const encryptDes = (message: string) => {
  let keyHex = cryptoJs.enc.Utf8.parse("9fc24111-3f46-4cdb-9562-289cb807b965")
  let option = { mode: cryptoJs.mode.ECB, padding: cryptoJs.pad.Pkcs7 }
  let encrypted = cryptoJs.DES.encrypt(message, keyHex, option)
  return encrypted.toString()
}
